<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Linux文件系统深度解析</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        /* 首字下沉效果 */
        .drop-cap::first-letter {
            float: left;
            font-size: 4rem;
            line-height: 3rem;
            padding-right: 0.5rem;
            margin-top: 0.5rem;
            font-weight: 700;
            color: #4f46e5;
            font-family: 'Noto Serif SC', serif;
        }
        
        /* 代码块美化 */
        pre {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border-radius: 12px;
            padding: 1.5rem;
            overflow-x: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            position: relative;
        }
        
        pre::before {
            content: attr(data-language);
            position: absolute;
            top: 0.5rem;
            right: 1rem;
            font-size: 0.75rem;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }
        
        code {
            color: #e2e8f0;
            font-family: 'Fira Code', monospace;
        }
        
        /* 表格美化 */
        table {
            border-collapse: separate;
            border-spacing: 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }
        
        /* 卡片悬停效果 */
        .feature-card {
            transition: all 0.3s ease;
            background: white;
            border-radius: 16px;
            padding: 2rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }
        
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
        }
        
        /* 渐变文字效果 */
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-fadeInUp {
            animation: fadeInUp 0.8s ease-out;
        }
        
        /* 自定义滚动条 */
        ::-webkit-scrollbar {
            width: 10px;
        }
        
        ::-webkit-scrollbar-track {
            background: #f1f5f9;
        }
        
        ::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 5px;
        }
        
        /* 引用样式 */
        .quote-box {
            position: relative;
            padding: 2rem 3rem;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 16px;
            margin: 2rem 0;
        }
        
        .quote-box::before {
            content: '"';
            position: absolute;
            top: -20px;
            left: 20px;
            font-size: 80px;
            opacity: 0.3;
            font-family: 'Noto Serif SC', serif;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="relative overflow-hidden">
        <div class="absolute inset-0 bg-gradient-to-br from-purple-600 via-indigo-600 to-blue-600 opacity-90"></div>
        <div class="relative z-10 container mx-auto px-6 py-24 text-center">
            <h1 class="text-5xl md:text-7xl font-bold text-white mb-6 animate-fadeInUp">
                Linux文件系统
                <span class="block text-3xl md:text-4xl mt-4 font-light">深度解析与实战指南</span>
            </h1>
            <p class="text-xl text-gray-200 max-w-3xl mx-auto animate-fadeInUp" style="animation-delay: 0.2s">
                从图书馆管理到计算机存储，探索EXT4、XFS、Btrfs三大文件系统的奥秘
            </p>
            <div class="mt-12 flex justify-center space-x-8 animate-fadeInUp" style="animation-delay: 0.4s">
                <div class="text-center">
                    <i class="fas fa-database text-4xl text-white mb-2"></i>
                    <p class="text-white">数据存储</p>
                </div>
                <div class="text-center">
                    <i class="fas fa-search text-4xl text-white mb-2"></i>
                    <p class="text-white">文件检索</p>
                </div>
                <div class="text-center">
                    <i class="fas fa-shield-alt text-4xl text-white mb-2"></i>
                    <p class="text-white">数据安全</p>
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="container mx-auto px-6 py-16">
        <!-- 引言部分 -->
        <section class="max-w-4xl mx-auto mb-16">
            <div class="bg-white rounded-2xl shadow-xl p-8 md:p-12">
                <h2 class="text-3xl font-bold mb-6 gradient-text">
                    <i class="fas fa-book-open mr-3"></i>从图书馆到计算机：文件系统到底是什么？
                </h2>
                <p class="text-lg leading-relaxed text-gray-700 drop-cap">
                    想象你管理着一个巨大的图书馆（硬盘），每天要处理成千上万本书（文件）的存取。<strong>文件系统</strong>就是图书管理员的工作手册，它决定了如何摆放书籍、怎样快速找到指定书籍、防止书籍损坏以及新增书籍的存放策略。
                </p>
                
                <div class="mt-8 bg-gray-50 rounded-xl p-6">
                    <p class="text-gray-600 mb-4">在Linux系统中，<code class="bg-gray-800 text-white px-2 py-1 rounded">lsblk -f</code>命令可以查看当前"图书馆管理方案"：</p>
                    <pre data-language="bash" class="mt-4"><code>NAME   FSTYPE LABEL UUID
sda1   ext4         4f5b... 
sdb1   xfs          a8c2...</code></pre>
                </div>
            </div>
        </section>

        <!-- 三大文件系统介绍 -->
        <section class="mb-16">
            <h2 class="text-4xl font-bold text-center mb-12 gradient-text">三大文件系统角色档案</h2>
            
            <div class="grid md:grid-cols-3 gap-8">
                <!-- EXT4 卡片 -->
                <div class="feature-card">
                    <div class="text-center mb-6">
                        <i class="fas fa-university text-5xl text-indigo-600"></i>
                    </div>
                    <h3 class="text-2xl font-bold mb-4 text-gray-800">EXT4：稳健的传统管理者</h3>
                    <p class="text-gray-600 mb-4">作为Linux的默认选择，EXT4就像经验丰富的图书馆长。</p>
                    <ul class="space-y-2 text-gray-700">
                        <li><i class="fas fa-check-circle text-green-500 mr-2"></i>成熟稳定，修复工具完善</li>
                        <li><i class="fas fa-check-circle text-green-500 mr-2"></i>日志记录借阅记录</li>
                        <li><i class="fas fa-check-circle text-green-500 mr-2"></i>单个书库最大1EB</li>
                    </ul>
                </div>

                <!-- XFS 卡片 -->
                <div class="feature-card">
                    <div class="text-center mb-6">
                        <i class="fas fa-rocket text-5xl text-purple-600"></i>
                    </div>
                    <h3 class="text-2xl font-bold mb-4 text-gray-800">XFS：大文件处理专家</h3>
                    <p class="text-gray-600 mb-4">XFS像擅长管理百科全书的管理员，为超大文件而生。</p>
                    <ul class="space-y-2 text-gray-700">
                        <li><i class="fas fa-check-circle text-green-500 mr-2"></i>支持8EB单文件</li>
                        <li><i class="fas fa-check-circle text-green-500 mr-2"></i>动态扩展书架</li>
                        <li><i class="fas fa-check-circle text-green-500 mr-2"></i>并行处理借阅请求</li>
                    </ul>
                </div>

                <!-- Btrfs 卡片 -->
                <div class="feature-card">
                    <div class="text-center mb-6">
                        <i class="fas fa-robot text-5xl text-pink-600"></i>
                    </div>
                    <h3 class="text-2xl font-bold mb-4 text-gray-800">Btrfs：未来派的智能机器人</h3>
                    <p class="text-gray-600 mb-4">Btrfs是配备了AI的管理员，拥有革命性功能。</p>
                    <ul class="space-y-2 text-gray-700">
                        <li><i class="fas fa-check-circle text-green-500 mr-2"></i>自动备份书籍快照</li>
                        <li><i class="fas fa-check-circle text-green-500 mr-2"></i>书籍自动去重</li>
                        <li><i class="fas fa-check-circle text-green-500 mr-2"></i>智能检测破损书籍</li>
                    </ul>
                </div>
            </div>
        </section>

        <!-- 功能对比表 -->
        <section class="mb-16">
            <h2 class="text-4xl font-bold text-center mb-12 gradient-text">功能对比：三大文件系统华山论剑</h2>
            
            <div class="overflow-x-auto">
                <table class="w-full bg-white">
                    <thead class="bg-gradient-to-r from-purple-600 to-indigo-600 text-white">
                        <tr>
                            <th class="px-6 py-4 text-left">特性</th>
                            <th class="px-6 py-4 text-center">EXT4</th>
                            <th class="px-6 py-4 text-center">XFS</th>
                            <th class="px-6 py-4 text-center">Btrfs</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr class="border-b hover:bg-gray-50">
                            <td class="px-6 py-4 font-medium">最大文件尺寸</td>
                            <td class="px-6 py-4 text-center">16TB-1EB</td>
                            <td class="px-6 py-4 text-center">8EB</td>
                            <td class="px-6 py-4 text-center">16EB</td>
                        </tr>
                        <tr class="border-b hover:bg-gray-50">
                            <td class="px-6 py-4 font-medium">在线扩容</td>
                            <td class="px-6 py-4 text-center"><i class="fas fa-times text-red-500"></i></td>
                            <td class="px-6 py-4 text-center"><i class="fas fa-check text-green-500"></i></td>
                            <td class="px-6 py-4 text-center"><i class="fas fa-check text-green-500"></i></td>
                        </tr>
                        <tr class="border-b hover:bg-gray-50">
                            <td class="px-6 py-4 font-medium">写时复制</td>
                            <td class="px-6 py-4 text-center"><i class="fas fa-times text-red-500"></i></td>
                            <td class="px-6 py-4 text-center"><i class="fas fa-times text-red-500"></i></td>
                            <td class="px-6 py-4 text-center"><i class="fas fa-check text-green-500"></i></td>
                        </tr>
                        <tr class="border-b hover:bg-gray-50">
                            <td class="px-6 py-4 font-